import request from '@/utils/request'

// 查询审批记录列表
export function listFlowApproveInfo(query) {
  return request({
    url: '/biz/flowApproveInfo/list',
    method: 'get',
    params: query
  })
}

// 查询审批记录详细
export function getFlowApproveInfo(id) {
  return request({
    url: '/biz/flowApproveInfo/' + id,
    method: 'get'
  })
}

// 新增审批记录
export function addFlowApproveInfo(data) {
  return request({
    url: '/biz/flowApproveInfo',
    method: 'post',
    data: data
  })
}

// 修改审批记录
export function updateFlowApproveInfo(data) {
  return request({
    url: '/biz/flowApproveInfo',
    method: 'put',
    data: data
  })
}

// 删除审批记录
export function delFlowApproveInfo(id) {
  return request({
    url: '/biz/flowApproveInfo/' + id,
    method: 'delete'
  })
}
